﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using NUnit.Framework;
using System.IO;
using ShrinkWrap;
using ShrinkWrap.Minifier;

namespace ShrinkWrap.Test.Minifier
{
    
    [TestFixture]
    public class CssMinifierFixture : MinifierFixture
    {
        public override String dataFolder { get { return @"Data\Css\"; } }
        public override String fileExtension { get { return "css"; } }

        [TestCase("/* Hello */", "", Description="Minify a comment.")]
        [TestCase("", "", Description="Minify an empty string.")]
        public void TestMinifyingString(String input, String expected)
        {
            CssMinifier minifier = new CssMinifier();

            AssertMinificationIsCorrect(expected, input, minifier);
        }

        [TestCase("blueprint-grid")]
        [TestCase("blueprint-forms")]
        public void TestMinifingFile(String filename)
        {
            CssMinifier minifier = new CssMinifier();

            AssertFileMinificationIsCorrect(filename, minifier);
        }
    }
}
